<!--[*
// ----------------------------------------------------------------------
// Source file:  $Source: /cvsroot/pn-commerce/pn-commerce/pntemplates/pncommerce_user_cartview.html,v $
//
// Last changes from:  $Author: landseer $
//
// Revision:           $Revision: 1.23 $
//
// Date of revision    $Date: 2005/03/22 13:03:40 $
//
// ----------------------------------------------------------------------
//
// called from : pncommerce_user_cartview
//               pncommerce_user_checkout (with parameter Checkout=true)
// task: show the contents of the users cart
*]-->

<!--[ if $CheckOut == true ]-->
    <!--[ include file='pncommerce_user_checkoutheader.html' ]-->
<!--[ else ]-->
    <!--[ include file='pncommerce_user_commonHeader.html' ]-->
<!--[ /if ]-->
<!-- start pncommerce_user_cartview -->
<br>
<span style="color: red; font-size:12px; font-weight: bold;"><!--[ pngetstatusmsg ]--></span><br>
<br><b>

<!--[ if $ItemsInCart == 0 ]-->

    <div align='center'>
    <!--[ pnml name='_PNC_YOURSHOPPINGCARTISEMPTY' ]-->
    </div></b><br>

<!--[ else ]-->

    <!--[ if $CheckOut == false ]-->
        <!--[ pnml name='_PNC_YOURSHOPPINGCARTCONTAINS' ]-->:</b><br><br>
    <!--[ elseif $CheckOut == true ]-->
        <!--[ include file='pncommerce_user_displaycustomerinfo.html' ]-->
    <!--[ /if ]-->
<!-- showitemsincart -->
<p>
<table width='100%' style='border-collapse: collapse; empty-cells: hide; border: 1px solid black;' cellpadding='5' cellspacing='1'>
    <tr>
        <th style="border: 1px solid black;"><!--[ pnml name='_PNC_PRODUCTNUMBER' ]--></th>
        <th style="border: 1px solid black;"><!--[ pnml name='_PNC_PRODUCTNAME' ]--></th>
        <th style="border: 1px solid black;"><!--[ pnml name='_PNC_QUANTITY' ]--></th>
        <th style="border: 1px solid black;"><!--[ pnml name='_PNC_PRICE' ]--></th>
        <th style="border: 1px solid black;"><!--[ pnml name='_PNC_TOTAL' ]--></th>
        <th style="border: 1px solid black;" colspan='2'><!--[ pnml name='_PNC_UPDATEREMOVEITEMS' ]--></th>
    </tr>

    <!--[ foreach item=Item from=$Cart.CartItems ]-->

	<tr>
	    <td style='border: 1px solid black;'>
	        
	        <!--[ $Item.ItemSKU ]-->
	        
	    </td>
	  	<td style='border: 1px solid black;'>
	  	    
	  	    <!--[ $Item.ItemName ]-->
	  	    
	  	</td>

        <form action='<!--[ pncUserModURL func=itemedit ]-->' method='post'>
        <input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="pncommerce"]-->">
	    <td style='border: 1px solid black;'>
	        
	        <INPUT TYPE='text' SIZE='5' NAME='ItemQuantity' VALUE='<!--[ $Item.ItemQuantity ]-->'>
	        
	    </td>
  	  	<td style='border: 1px solid black;' align='right'>
  	  	    
  	  	    <!--[ $Item.ItemCostLong|pncShowAsPrice ]-->
  	  	    
  	  	</td>
	    <td style='border: 1px solid black;' align='right'>
	        
	        <b><!--[ $Item.ItemCostTotal|pncShowAsPrice ]--></b>
	        
	    </td>
	    <td style='border: 1px solid black;' align='center'>
        	<INPUT TYPE='hidden' NAME='CartItemsID' VALUE='<!--[ $Item.CartItemsID ]-->'>
        	<INPUT TYPE='hidden' NAME='ItemID' VALUE='<!--[ $Item.ItemID ]-->'>
         	<INPUT TYPE='hidden' NAME='Mode' VALUE='replace'>
			<input type='hidden' name='cartview' value='on'>
	    	<INPUT class='pn-button' TYPE='submit' NAME='SUBMIT' VALUE='<!--[ pnml name='_PNC_UPDATE' ]-->'>
        </td>
       	</form>
        <form action='<!--[ pncUserModURL func=itemedit ]-->' method='post'>
        <input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="pncommerce"]-->">
	    <td style='border: 1px solid black;' align='center'>
	        <INPUT TYPE='hidden' NAME='ItemQuantity' VALUE='0'>
			<INPUT TYPE='hidden' NAME='CartItemsID' VALUE='<!--[ $Item.CartItemsID ]-->'>
			<INPUT TYPE='hidden' NAME='ItemID' VALUE='<!--[ $Item.ItemID ]-->'>
			<INPUT TYPE='hidden' NAME='Mode' VALUE='remove'>
			<input type='hidden' name='cartview' value='on'>
			<INPUT class='pn-button' TYPE='submit' NAME='SUBMIT' VALUE='<!--[ pnml name='_PNC_REMOVE' ]-->'>
        </td>
        </form>
    </tr>

    <!--[ /foreach ]-->

<!--if checkout-->

	<tr>
	    <td style='border: 1px solid black;' colspan='4' align='right'>
	        
	        <b><i><!--[ pnml name='_PNC_SUBTOTAL' ]--></i></b>
	        
	    </td>
		<td style='border: 1px solid black;' align='right'>
		    
		    <b><!--[ $Cart.SubTotal|pncShowAsPrice ]--></b>
		    
		</td>
		<td style='border: 1px solid black;' colspan='2'>
		    &nbsp;
		</td>
	</tr>

    <!--[ if $Cart.ShippingTotal > 0 ]-->
 	
 	<tr>
 	    <td style='border: 1px solid black;' colspan='4' align='right'>
 	        
 	        <b><i><!--[ pnml name='_PNC_SHIPPING' ]-->: </i></b>
 	        
 	    </td>
	  	<td style='border: 1px solid black;' align='right'>
	  	    
	  	    <b><!--[ $Cart.ShippingTotal|pncShowAsPrice ]--></b>
	  	    
	  	</td>
		<td style='border: 1px solid black;' colspan='2'>
		    &nbsp;
		</td>
	</tr>

    <!--[ /if ]-->

    <!--[ if $Cart.PaymethodTotal > 0 ]-->
    
    <tr>
        <td style='border: 1px solid black;' colspan='4' align='right'>
            
            <b><i><!--[ pnml name='_PNC_PAYMENT' ]-->: </i></b>
            
        </td>
		<td style='border: 1px solid black;' align='right'>
		    
		    <b><!--[ $Cart.PaymethodTotal|pncShowAsPrice ]--></b>
		    
		</td>
		<td style='border: 1px solid black;' colspan='2'>
		    &nbsp;
		</td>
	</tr>
    
    <!--[ /if ]-->

    <!--[ foreach item=OrderMod from=$Cart.OrderModifier ]-->

    <tr>
        <td style='border: 1px solid black;' colspan='4' align='right'>
            
            <b><i><!--[ $OrderMod.Info ]-->: </i></b>
            
        </td>
		<td style='border: 1px solid black;' align='right'>
		    
		    <b><!--[ $OrderMod.Amount|pncShowAsPrice ]--></b>
		    
		</td>
		<td style='border: 1px solid black;' colspan='2'>
		    &nbsp;
		</td>
	</tr>
    <!--[ /foreach ]-->

	<tr>
	   	<td style='border: 1px solid black;' colspan='4' align='right'>
	   	    
	   	    <b><i><!--[ pnml name='_PNC_TOTALPRICE ]-->: </i></b>
	   	    
	   	</td>
	   	<td style='border: 1px solid black;' align='right'>
	   	    
	   	    <b><!--[ $Cart.Total|pncShowAsPrice ]--></b>
	   	    
	   	</td>

        <!--[ if $CheckOut == false ]-->
	
		<td style='border: 1px solid black;' colspan='2'>
   		    <FORM ACTION='<!--[ pncUserModURL func=userinfo ]-->' METHOD='POST'>
   		        <div style="text-align: center;">
                <input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="pncommerce"]-->">
   	    	    <INPUT class='pn-button' TYPE='submit' NAME='SUBMIT' VALUE='<!--[ pnml name='_PNC_GOTOTHECHECKOUT' ]-->'>
       	    	</div>
   	    	</FORM> 
   		    <FORM ACTION='<!--[ pncUserModURL func=cartremove ]-->' METHOD='POST'>
   		        <div style="text-align: center;">
                <input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="pncommerce"]-->">
			    <input type='hidden' name='cartview' value='on'>
   	        	<INPUT class='pn-button' TYPE='submit' NAME='SUBMIT' VALUE='<!--[ pnml name='_PNC_EMPTYTHISCART' ]-->'>
       	    	</div>
   	    	</FORM>
   	    </td>
    
        <!--[ else ]-->
        
        <td style='border: 1px solid black;' colspan='2'></td>
    
        <!--[ /if ]-->
    
    </tr>

    <!--[ foreach item=VAT key=Key from=$Cart.VATList ]-->

    <tr>
        <td style='border: 1px solid black;' colspan='4' align='right'>
            
            <i><!--[ pnml name='_PNC_INCLUDEDVAT' ]--> <!--[ $Key ]--> %: </i>
            
        </td>
		<td style='border: 1px solid black;' align='right'>
		    
		    <!--[ $VAT|pncShowAsPrice ]-->
		    
		</td>
		<td style='border: 1px solid black;' colspan='2'>
		    &nbsp;
		</td>
	</tr>
	
	<!--[ /foreach ]-->

</table></p>

<!--[ if $CheckOut == false ]-->

<div style="font-size: 0.8em;">
<b><!--[ pnml name='_PNC_HINT' html=1 ]-->: </b><br />
<!--[ pnml name='_PNC_TOADDMORECLICK' ]-->
<b><!--[ pnml name='_PNC_UPDATE' ]--></b><br />
<!--[ pnml name='_PNC_TOREMOVECLICK' ]-->
<b><!--[ pnml name='_PNC_REMOVE' ]--></b>
</div>

<!--[ else ]-->

<!--[ include file='pncommerce_user_checkout.html' ]-->

<!--[ /if ]-->

<!--[ if $QUp == true ]-->
<p align='center'>
<b><!--[ pnml name='_PNC_UPDATEQUANTITIES' ]--></b>
</p>
<!--[ /if ]-->

<!--[ /if ]-->

<!--end pncommerce_user_cartview -->
<!--[ include file='pncommerce_user_commonFooter.html' ]-->
